
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>（一）命名风格 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="常量定义.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    一、编程规约
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="命名风格.html">
            
                <a href="命名风格.html">
            
                    
                    （一）命名风格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="常量定义.html">
            
                <a href="常量定义.html">
            
                    
                    （二）常量定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="代码格式.html">
            
                <a href="代码格式.html">
            
                    
                    （三）代码格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="OOP规范.html">
            
                <a href="OOP规范.html">
            
                    
                    （四）OOP规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="集合处理.html">
            
                <a href="集合处理.html">
            
                    
                    （五）集合处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="并发处理.html">
            
                <a href="并发处理.html">
            
                    
                    （六）并发处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="控制语句.html">
            
                <a href="控制语句.html">
            
                    
                    （七）控制语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="注释规约.html">
            
                <a href="注释规约.html">
            
                    
                    （八）注释规约
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    二、异常日志
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../异常日志/异常处理.html">
            
                <a href="../异常日志/异常处理.html">
            
                    
                    （一）异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../异常日志/日志规约.html">
            
                <a href="../异常日志/日志规约.html">
            
                    
                    （二）日志规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../异常日志/其他.html">
            
                <a href="../异常日志/其他.html">
            
                    
                    （三）其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../单元测试.html">
            
                <a href="../单元测试.html">
            
                    
                    三、单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../安全规约.html">
            
                <a href="../安全规约.html">
            
                    
                    四、安全规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    五、MySQL数据库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../MySQL数据库/建表规约.html">
            
                <a href="../MySQL数据库/建表规约.html">
            
                    
                    （一）建表规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../MySQL数据库/索引规约.html">
            
                <a href="../MySQL数据库/索引规约.html">
            
                    
                    （二）索引规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../MySQL数据库/SQL语句.html">
            
                <a href="../MySQL数据库/SQL语句.html">
            
                    
                    （三）SQL语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../MySQL数据库/ORM映射.html">
            
                <a href="../MySQL数据库/ORM映射.html">
            
                    
                    （四）ORM映射
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    六、工程结构
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../工程结构/应用分层.html">
            
                <a href="../工程结构/应用分层.html">
            
                    
                    （一）应用分层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../工程结构/二方库依赖.html">
            
                <a href="../工程结构/二方库依赖.html">
            
                    
                    （二）二方库依赖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../工程结构/服务器.html">
            
                <a href="../工程结构/服务器.html">
            
                    
                    （三）服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../版本历史.html">
            
                <a href="../版本历史.html">
            
                    
                    附1：版本历史 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../本手册专有名词.html">
            
                <a href="../本手册专有名词.html">
            
                    
                    附2：本手册专有名词 
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >（一）命名风格</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x4E00;&#x3001;&#x7F16;&#x7A0B;&#x89C4;&#x7EA6;">&#x4E00;&#x3001;&#x7F16;&#x7A0B;&#x89C4;&#x7EA6;</h1>
<h2 id="&#xFF08;&#x4E00;&#xFF09;&#x547D;&#x540D;&#x98CE;&#x683C;">&#xFF08;&#x4E00;&#xFF09;&#x547D;&#x540D;&#x98CE;&#x683C;</h2>
<ol>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x547D;&#x540D;&#x5747;&#x4E0D;&#x80FD;&#x4EE5;<strong>&#x4E0B;&#x5212;&#x7EBF;&#x6216;&#x7F8E;&#x5143;&#x7B26;&#x53F7;</strong>&#x5F00;&#x59CB;&#xFF0C;&#x4E5F;&#x4E0D;&#x80FD;&#x4EE5;<strong>&#x4E0B;&#x5212;&#x7EBF;&#x6216;&#x7F8E;&#x5143;&#x7B26;&#x53F7;</strong>&#x7ED3;&#x675F;&#x3002;
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;<code>_name / __name / $name / name_ / name$ / name__</code></li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x547D;&#x540D;&#x4E25;&#x7981;&#x4F7F;&#x7528;&#x62FC;&#x97F3;&#x4E0E;&#x82F1;&#x6587;&#x6DF7;&#x5408;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x66F4;&#x4E0D;&#x5141;&#x8BB8;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x4E2D;&#x6587;&#x7684;&#x65B9;&#x5F0F;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x6B63;&#x786E;&#x7684;&#x82F1;&#x6587;&#x62FC;&#x5199;&#x548C;&#x8BED;&#x6CD5;&#x53EF;&#x4EE5;&#x8BA9;&#x9605;&#x8BFB;&#x8005;&#x6613;&#x4E8E;&#x7406;&#x89E3;&#xFF0C;&#x907F;&#x514D;&#x6B67;&#x4E49;&#x3002;&#x6CE8;&#x610F;&#xFF0C;&#x5373;&#x4F7F;&#x7EAF;&#x62FC;&#x97F3;&#x547D;&#x540D;&#x65B9;&#x5F0F;&#x4E5F;&#x8981;&#x907F;&#x514D;&#x91C7;&#x7528;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;alibaba / taobao / youku / hangzhou &#x7B49;&#x56FD;&#x9645;&#x901A;&#x7528;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x53EF;&#x89C6;&#x540C;&#x82F1;&#x6587;&#x3002; 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;DaZhePromotion [&#x6253;&#x6298;] / getPingfenByName() [&#x8BC4;&#x5206;] / int &#x67D0;&#x53D8;&#x91CF; = 3 </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x7C7B;&#x540D;&#x4F7F;&#x7528;<code>UpperCamelCase</code>&#x98CE;&#x683C;&#xFF0C;&#x4F46;&#x4EE5;&#x4E0B;&#x60C5;&#x5F62;&#x4F8B;&#x5916;&#xFF1A;DO / BO / DTO / VO / AO / PO&#x7B49;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;MarcoPolo / UserDO / XmlService / TcpUdpDeal / TaPromotion 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;macroPolo / UserDo / XMLService / TCPUDPDeal / TAPromotion </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x65B9;&#x6CD5;&#x540D;&#x3001;&#x53C2;&#x6570;&#x540D;&#x3001;&#x6210;&#x5458;&#x53D8;&#x91CF;&#x3001;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x90FD;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;<code>lowerCamelCase</code>&#x98CE;&#x683C;&#xFF0C;&#x5FC5;&#x987B;&#x9075;&#x4ECE;&#x9A7C;&#x5CF0;&#x5F62;&#x5F0F;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A; localValue / getHttpMessage() / inputUserId </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x5E38;&#x91CF;&#x547D;&#x540D;&#x5168;&#x90E8;&#x5927;&#x5199;&#xFF0C;&#x5355;&#x8BCD;&#x95F4;&#x7528;&#x4E0B;&#x5212;&#x7EBF;&#x9694;&#x5F00;&#xFF0C;&#x529B;&#x6C42;&#x8BED;&#x4E49;&#x8868;&#x8FBE;&#x5B8C;&#x6574;&#x6E05;&#x695A;&#xFF0C;&#x4E0D;&#x8981;&#x5ACC;&#x540D;&#x5B57;&#x957F;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;MAX_STOCK_COUNT 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;MAX_COUNT </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x62BD;&#x8C61;&#x7C7B;&#x547D;&#x540D;&#x4F7F;&#x7528;Abstract&#x6216;Base&#x5F00;&#x5934;&#xFF1B;&#x5F02;&#x5E38;&#x7C7B;&#x547D;&#x540D;&#x4F7F;&#x7528;Exception&#x7ED3;&#x5C3E;&#xFF1B;&#x6D4B;&#x8BD5;&#x7C7B;&#x547D;&#x540D;&#x4EE5;&#x5B83;&#x8981;&#x6D4B;&#x8BD5;&#x7684;&#x7C7B;&#x540D;&#x5F00;&#x59CB;&#xFF0C;&#x4EE5;Test&#x7ED3;&#x5C3E;&#x3002; </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x7C7B;&#x578B;&#x4E0E;&#x4E2D;&#x62EC;&#x53F7;&#x7D27;&#x6328;&#x76F8;&#x8FDE;&#x6765;&#x5B9A;&#x4E49;&#x6570;&#x7EC4;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x5B9A;&#x4E49;&#x6574;&#x5F62;&#x6570;&#x7EC4;<code>int[] arrayDemo;</code> 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;&#x5728;main&#x53C2;&#x6570;&#x4E2D;&#xFF0C;&#x4F7F;&#x7528;<code>String args[]</code>&#x6765;&#x5B9A;&#x4E49;&#x3002; </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;POJO&#x7C7B;&#x4E2D;&#x5E03;&#x5C14;&#x7C7B;&#x578B;&#x7684;&#x53D8;&#x91CF;&#xFF0C;&#x90FD;&#x4E0D;&#x8981;&#x52A0;is&#x524D;&#x7F00;&#xFF0C;&#x5426;&#x5219;&#x90E8;&#x5206;&#x6846;&#x67B6;&#x89E3;&#x6790;&#x4F1A;&#x5F15;&#x8D77;&#x5E8F;&#x5217;&#x5316;&#x9519;&#x8BEF;&#x3002; 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;&#x5B9A;&#x4E49;&#x4E3A;&#x57FA;&#x672C;&#x6570;&#x636E;&#x7C7B;&#x578B;<code>Boolean isDeleted&#xFF1B;</code>&#x7684;&#x5C5E;&#x6027;&#xFF0C;&#x5B83;&#x7684;&#x65B9;&#x6CD5;&#x4E5F;&#x662F;<code>isDeleted()</code>&#xFF0C;RPC&#x6846;&#x67B6;&#x5728;&#x53CD;&#x5411;&#x89E3;&#x6790;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x201C;&#x8BEF;&#x4EE5;&#x4E3A;&#x201D;&#x5BF9;&#x5E94;&#x7684;&#x5C5E;&#x6027;&#x540D;&#x79F0;&#x662F;deleted&#xFF0C;&#x5BFC;&#x81F4;&#x5C5E;&#x6027;&#x83B7;&#x53D6;&#x4E0D;&#x5230;&#xFF0C;&#x8FDB;&#x800C;&#x629B;&#x51FA;&#x5F02;&#x5E38;&#x3002;</li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x5305;&#x540D;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#xFF0C;&#x70B9;&#x5206;&#x9694;&#x7B26;&#x4E4B;&#x95F4;&#x6709;&#x4E14;&#x4EC5;&#x6709;&#x4E00;&#x4E2A;&#x81EA;&#x7136;&#x8BED;&#x4E49;&#x7684;&#x82F1;&#x8BED;&#x5355;&#x8BCD;&#x3002;&#x5305;&#x540D;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;&#x5355;&#x6570;&#x5F62;&#x5F0F;&#xFF0C;&#x4F46;&#x662F;&#x7C7B;&#x540D;&#x5982;&#x679C;&#x6709;&#x590D;&#x6570;&#x542B;&#x4E49;&#xFF0C;&#x7C7B;&#x540D;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x590D;&#x6570;&#x5F62;&#x5F0F;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x5E94;&#x7528;&#x5DE5;&#x5177;&#x7C7B;&#x5305;&#x540D;&#x4E3A;com.alibaba.ai.util&#x3001;&#x7C7B;&#x540D;&#x4E3A;MessageUtils&#xFF08;&#x6B64;&#x89C4;&#x5219;&#x53C2;&#x8003;spring&#x7684;&#x6846;&#x67B6;&#x7ED3;&#x6784;&#xFF09; </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x675C;&#x7EDD;&#x5B8C;&#x5168;&#x4E0D;&#x89C4;&#x8303;&#x7684;&#x7F29;&#x5199;&#xFF0C;&#x907F;&#x514D;&#x671B;&#x6587;&#x4E0D;&#x77E5;&#x4E49;&#x3002; 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;AbstractClass&#x201C;&#x7F29;&#x5199;&#x201D;&#x547D;&#x540D;&#x6210;AbsClass&#xFF1B;condition&#x201C;&#x7F29;&#x5199;&#x201D;&#x547D;&#x540D;&#x6210; condi&#xFF0C;&#x6B64;&#x7C7B;&#x968F;&#x610F;&#x7F29;&#x5199;&#x4E25;&#x91CD;&#x964D;&#x4F4E;&#x4E86;&#x4EE3;&#x7801;&#x7684;&#x53EF;&#x9605;&#x8BFB;&#x6027;&#x3002; </li>
<li>&#x3010;&#x63A8;&#x8350;&#x3011;&#x4E3A;&#x4E86;&#x8FBE;&#x5230;&#x4EE3;&#x7801;&#x81EA;&#x89E3;&#x91CA;&#x7684;&#x76EE;&#x6807;&#xFF0C;&#x4EFB;&#x4F55;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x7A0B;&#x5143;&#x7D20;&#x5728;&#x547D;&#x540D;&#x65F6;&#xFF0C;&#x4F7F;&#x7528;&#x5C3D;&#x91CF;&#x5B8C;&#x6574;&#x7684;&#x5355;&#x8BCD;&#x7EC4;&#x5408;&#x6765;&#x8868;&#x8FBE;&#x5176;&#x610F;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x62C9;&#x53D6;&#x4EE3;&#x7801;&#x7684;&#x7C7B;&#x547D;&#x540D;&#x4E3A;PullCodeFromRemoteRepository&#x3002; 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;&#x53D8;&#x91CF;int a; &#x7684;&#x968F;&#x610F;&#x547D;&#x540D;&#x65B9;&#x5F0F;&#x3002; </li>
<li>&#x3010;&#x63A8;&#x8350;&#x3011;&#x5982;&#x679C;&#x6A21;&#x5757;&#x3001;&#x63A5;&#x53E3;&#x3001;&#x7C7B;&#x3001;&#x65B9;&#x6CD5;&#x4F7F;&#x7528;&#x4E86;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;&#xFF0C;&#x5728;&#x547D;&#x540D;&#x65F6;&#x4F53;&#x73B0;&#x51FA;&#x5177;&#x4F53;&#x6A21;&#x5F0F;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x5C06;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;&#x4F53;&#x73B0;&#x5728;&#x540D;&#x5B57;&#x4E2D;&#xFF0C;&#x6709;&#x5229;&#x4E8E;&#x9605;&#x8BFB;&#x8005;&#x5FEB;&#x901F;&#x7406;&#x89E3;&#x67B6;&#x6784;&#x8BBE;&#x8BA1;&#x7406;&#x5FF5;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;<pre class="language-"><code>public class OrderFactory;
public class LoginProxy;
public class ResourceObserver;
</code></pre></li>
<li>&#x3010;&#x63A8;&#x8350;&#x3011;&#x63A5;&#x53E3;&#x7C7B;&#x4E2D;&#x7684;&#x65B9;&#x6CD5;&#x548C;&#x5C5E;&#x6027;&#x4E0D;&#x8981;&#x52A0;&#x4EFB;&#x4F55;&#x4FEE;&#x9970;&#x7B26;&#x53F7;&#xFF08;public &#x4E5F;&#x4E0D;&#x8981;&#x52A0;&#xFF09;&#xFF0C;&#x4FDD;&#x6301;&#x4EE3;&#x7801;&#x7684;&#x7B80;&#x6D01;&#x6027;&#xFF0C;&#x5E76;&#x52A0;&#x4E0A;&#x6709;&#x6548;&#x7684;Javadoc&#x6CE8;&#x91CA;&#x3002;&#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x5728;&#x63A5;&#x53E3;&#x91CC;&#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x5B9A;&#x8981;&#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#xFF0C;&#x80AF;&#x5B9A;&#x662F;&#x4E0E;&#x63A5;&#x53E3;&#x65B9;&#x6CD5;&#x76F8;&#x5173;&#xFF0C;&#x5E76;&#x4E14;&#x662F;&#x6574;&#x4E2A;&#x5E94;&#x7528;&#x7684;&#x57FA;&#x7840;&#x5E38;&#x91CF;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x63A5;&#x53E3;&#x65B9;&#x6CD5;&#x7B7E;&#x540D;void f(); &#x63A5;&#x53E3;&#x57FA;&#x7840;&#x5E38;&#x91CF;String COMPANY = &quot;alibaba&quot;; 
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;&#x63A5;&#x53E3;&#x65B9;&#x6CD5;&#x5B9A;&#x4E49;public abstract void f(); 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;JDK8&#x4E2D;&#x63A5;&#x53E3;&#x5141;&#x8BB8;&#x6709;&#x9ED8;&#x8BA4;&#x5B9E;&#x73B0;&#xFF0C;&#x90A3;&#x4E48;&#x8FD9;&#x4E2A;default&#x65B9;&#x6CD5;&#xFF0C;&#x662F;&#x5BF9;&#x6240;&#x6709;&#x5B9E;&#x73B0;&#x7C7B;&#x90FD;&#x6709;&#x4EF7;&#x503C;&#x7684;&#x9ED8;&#x8BA4;&#x5B9E;&#x73B0;&#x3002; </li>
<li>&#x63A5;&#x53E3;&#x548C;&#x5B9E;&#x73B0;&#x7C7B;&#x7684;&#x547D;&#x540D;&#x6709;&#x4E24;&#x5957;&#x89C4;&#x5219;&#xFF1A;<br>1&#xFF09;&#x3010;&#x5F3A;&#x5236;&#x3011;&#x5BF9;&#x4E8E;Service&#x548C;DAO&#x7C7B;&#xFF0C;&#x57FA;&#x4E8E;SOA&#x7684;&#x7406;&#x5FF5;&#xFF0C;&#x66B4;&#x9732;&#x51FA;&#x6765;&#x7684;&#x670D;&#x52A1;&#x4E00;&#x5B9A;&#x662F;&#x63A5;&#x53E3;&#xFF0C;&#x5185;&#x90E8;&#x7684;&#x5B9E;&#x73B0;&#x7C7B;&#x7528;Impl&#x7684;&#x540E;&#x7F00;&#x4E0E;&#x63A5;&#x53E3;&#x533A;&#x522B;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;CacheServiceImpl&#x5B9E;&#x73B0;CacheService&#x63A5;&#x53E3;&#x3002;<br>
2&#xFF09; &#x3010;&#x63A8;&#x8350;&#x3011; &#x5982;&#x679C;&#x662F;&#x5F62;&#x5BB9;&#x80FD;&#x529B;&#x7684;&#x63A5;&#x53E3;&#x540D;&#x79F0;&#xFF0C;&#x53D6;&#x5BF9;&#x5E94;&#x7684;&#x5F62;&#x5BB9;&#x8BCD;&#x4E3A;&#x63A5;&#x53E3;&#x540D;&#xFF08;&#x901A;&#x5E38;&#x662F;&#x2013;able&#x7684;&#x5F62;&#x5F0F;&#xFF09;&#x3002;
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;AbstractTranslator&#x5B9E;&#x73B0; Translatable&#x3002; </li>
<li>&#x3010;&#x53C2;&#x8003;&#x3011;&#x679A;&#x4E3E;&#x7C7B;&#x540D;&#x5EFA;&#x8BAE;&#x5E26;&#x4E0A;Enum&#x540E;&#x7F00;&#xFF0C;&#x679A;&#x4E3E;&#x6210;&#x5458;&#x540D;&#x79F0;&#x9700;&#x8981;&#x5168;&#x5927;&#x5199;&#xFF0C;&#x5355;&#x8BCD;&#x95F4;&#x7528;&#x4E0B;&#x5212;&#x7EBF;&#x9694;&#x5F00;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x679A;&#x4E3E;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x7279;&#x6B8A;&#x7684;&#x5E38;&#x91CF;&#x7C7B;&#xFF0C;&#x4E14;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x88AB;&#x9ED8;&#x8BA4;&#x5F3A;&#x5236;&#x662F;&#x79C1;&#x6709;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x679A;&#x4E3E;&#x540D;&#x5B57;&#x4E3A;ProcessStatusEnum&#x7684;&#x6210;&#x5458;&#x540D;&#x79F0;&#xFF1A;SUCCESS / UNKNOWN_REASON&#x3002; </li>
<li>&#x3010;&#x53C2;&#x8003;&#x3011;&#x5404;&#x5C42;&#x547D;&#x540D;&#x89C4;&#x7EA6;&#xFF1A;<br>A) Service/DAO&#x5C42;&#x65B9;&#x6CD5;&#x547D;&#x540D;&#x89C4;&#x7EA6;<br>
1&#xFF09; &#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;&#x7528;get&#x4F5C;&#x524D;&#x7F00;&#x3002;
<br>2&#xFF09; &#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;&#x7528;list&#x4F5C;&#x524D;&#x7F00;&#x3002;
<br>3&#xFF09; &#x83B7;&#x53D6;&#x7EDF;&#x8BA1;&#x503C;&#x7684;&#x65B9;&#x6CD5;&#x7528;count&#x4F5C;&#x524D;&#x7F00;&#x3002;<br>4&#xFF09; &#x63D2;&#x5165;&#x7684;&#x65B9;&#x6CD5;&#x7528;save/insert&#x4F5C;&#x524D;&#x7F00;&#x3002;<br>5&#xFF09; &#x5220;&#x9664;&#x7684;&#x65B9;&#x6CD5;&#x7528;remove/delete&#x4F5C;&#x524D;&#x7F00;&#x3002;<br>6&#xFF09; &#x4FEE;&#x6539;&#x7684;&#x65B9;&#x6CD5;&#x7528;update&#x4F5C;&#x524D;&#x7F00;&#x3002; 
<br>B) &#x9886;&#x57DF;&#x6A21;&#x578B;&#x547D;&#x540D;&#x89C4;&#x7EA6; <br>
1&#xFF09; &#x6570;&#x636E;&#x5BF9;&#x8C61;&#xFF1A;xxxDO&#xFF0C;xxx&#x5373;&#x4E3A;&#x6570;&#x636E;&#x8868;&#x540D;&#x3002;<br>2&#xFF09; &#x6570;&#x636E;&#x4F20;&#x8F93;&#x5BF9;&#x8C61;&#xFF1A;xxxDTO&#xFF0C;xxx&#x4E3A;&#x4E1A;&#x52A1;&#x9886;&#x57DF;&#x76F8;&#x5173;&#x7684;&#x540D;&#x79F0;&#x3002;<br>3&#xFF09; &#x5C55;&#x793A;&#x5BF9;&#x8C61;&#xFF1A;xxxVO&#xFF0C;xxx&#x4E00;&#x822C;&#x4E3A;&#x7F51;&#x9875;&#x540D;&#x79F0;&#x3002;<br>4&#xFF09; POJO&#x662F;DO/DTO/BO/VO&#x7684;&#x7EDF;&#x79F0;&#xFF0C;&#x7981;&#x6B62;&#x547D;&#x540D;&#x6210;xxxPOJO&#x3002; </li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="常量定义.html" class="navigation navigation-next navigation-unique" aria-label="Next page: （二）常量定义">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"（一）命名风格","level":"1.2.1","depth":2,"next":{"title":"（二）常量定义","level":"1.2.2","depth":2,"path":"编程规约/常量定义.md","ref":"编程规约/常量定义.md","articles":[]},"previous":{"title":"一、编程规约","level":"1.2","depth":1,"ref":"","articles":[{"title":"（一）命名风格","level":"1.2.1","depth":2,"path":"编程规约/命名风格.md","ref":"编程规约/命名风格.md","articles":[]},{"title":"（二）常量定义","level":"1.2.2","depth":2,"path":"编程规约/常量定义.md","ref":"编程规约/常量定义.md","articles":[]},{"title":"（三）代码格式","level":"1.2.3","depth":2,"path":"编程规约/代码格式.md","ref":"编程规约/代码格式.md","articles":[]},{"title":"（四）OOP规范","level":"1.2.4","depth":2,"path":"编程规约/OOP规范.md","ref":"编程规约/OOP规范.md","articles":[]},{"title":"（五）集合处理","level":"1.2.5","depth":2,"path":"编程规约/集合处理.md","ref":"编程规约/集合处理.md","articles":[]},{"title":"（六）并发处理","level":"1.2.6","depth":2,"path":"编程规约/并发处理.md","ref":"编程规约/并发处理.md","articles":[]},{"title":"（七）控制语句","level":"1.2.7","depth":2,"path":"编程规约/控制语句.md","ref":"编程规约/控制语句.md","articles":[]},{"title":"（八）注释规约","level":"1.2.8","depth":2,"path":"编程规约/注释规约.md","ref":"编程规约/注释规约.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["book-summary-scroll-position-saver","github","prism","-sharing","-highlight"],"pluginsConfig":{"github":{"url":"https://github.com/alibaba/p3c"},"book-summary-scroll-position-saver":{},"prism":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css"}},"file":{"path":"编程规约/命名风格.md","mtime":"2018-01-15T14:38:30.242Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-01-15T14:41:43.583Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-book-summary-scroll-position-saver/book-summary-scroll-position-saver.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

